import common from './common'
import paths from './paths'

const useRegulationService = {};

(function (service) {
  /***
   * 查询分区县清单
   * @param params
   * @param data
   * @returns {Promise | Promise<unknown>}
   */
  service.searchUseZone = function (params, data) {
    return common.post(paths.useRegulation.searchUseZone, params, data)
  }

  service.deleteUseZoneById = function (zoneId) {
    return common.post(paths.useRegulation.deleteUseZoneById, { zoneId: zoneId })
  }

  service.saveZone = function (data) {
    return common.post(paths.useRegulation.saveZone, { }, data)
  }
})(useRegulationService)

export default useRegulationService
